
import { LanguageServiceMode } from 'typescript';

import { template } from 'lodash';
<template>
  <div v-if="isShow" class="loading">
    Loading...
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
const isShow = ref<boolean>(false)

const show = () => {
  isShow.value = true
}

const hide = () => {
  isShow.value = false
}

defineExpose({
  show,
  hide,
  isShow
})

</script>

<style lang="less">
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  font-size: 30px;
  color: #fff;
  background-color: black;
  opacity: 0.8;
}
</style>